package cn.terminus.client.customer.contractselldefyloaninfo.service;

import cn.terminus.client.customer.contractselldefyloaninfo.param.ContractSellDefyLoanInfoNewParam;
import cn.terminus.client.customer.contractselldefyloaninfo.param.ContractSellDefyLoanInfoEditParam;
import cn.terminus.client.customer.contractselldefyloaninfo.param.ContractSellDefyLoanInfoQueryParam;
import cn.terminus.client.customer.contractselldefyloaninfo.param.ContractSellDefyLoanInfoDeleteParam;
import cn.terminus.client.customer.contractselldefyloaninfo.param.ContractSellDefyLoanInfoGetsParam;
import cn.terminus.client.customer.contractselldefyloaninfo.result.ContractSellDefyLoanInfoResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * 贷款违约(ContractSellDefyLoanInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:18:15
 */
public interface ContractSellDefyLoanInfoService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(ContractSellDefyLoanInfoNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(ContractSellDefyLoanInfoEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellDefyLoanInfoResult>> gets(ContractSellDefyLoanInfoGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(ContractSellDefyLoanInfoDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellDefyLoanInfoResult>> query(ContractSellDefyLoanInfoQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<ContractSellDefyLoanInfoResult>> page(ContractSellDefyLoanInfoQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
